﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Serialize.model
{
    [Serializable]
    public class Role
    {
        public Role()
        {

        }
        public Role(string name, string description)
        {
            this.ID = Guid.NewGuid();
            this.Name = name;
            this.Description = description;
        }
        public Guid ID { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public override string ToString()
        {
            return string.Format("角色ID：{0}\r\n名称：{1}\r\n描述：{2}", this.ID, this.Name, this.Description);
        }
    }
}
